package com.sys.basics.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import com.sys.basics.entity.SysRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: ares
 * @date: 2021-10-08
 * @description: 角色表 Mapper 接口
 */
@Mapper
public interface SysRoleDao extends BaseMapper<SysRole> {

    List<SysRole> getListByUserAndOrg(@Param("userId") Long userId, @Param("orgId") Long orgId);

    IPage<SysRole> getPagesByOrg(Page<SysRole> page, @Param("orgId") Long orgId, @Param("roleParams")  SysRole roleParams);
}
